package com.nhatth.contactsharer;

import java.util.Vector;

import android.os.Bundle;
import android.support.v4.app.ListFragment;

public class SelectedContactFragment extends ListFragment {
	
	Vector<Contact> mSelectedValue;
	OnContactUncheckListener mListener;
	SelectedContactAdapter mSelectedAdapter;
	
	public interface OnContactUncheckListener {
		public void OnContactUncheck(Contact con);
		public SelectedContactAdapter getCheckedAdapter();
	}
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		mListener = (OnContactUncheckListener) getActivity();
		mSelectedAdapter = mListener.getCheckedAdapter();
		setListAdapter(mSelectedAdapter);
	}
	
	public void refreshList() {
		this.getListView().invalidate();
	}
}
